package com.example.stumanager.admin;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ListView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.stumanager.HomepageLoginInterface;
import com.example.stumanager.R;
import com.example.stumanager.database.UserSql;
import com.example.stumanager.entity.UserEntity;

import java.util.ArrayList;

/**
 * 信息查看
 */
public class AdminFunctionalModulesPage extends AppCompatActivity {

    Button  BaoXiu, JiaQi, LiuYan, ShangWang, JiaoFei, ClockInLate,re;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.admin_functional_modules_page);

        JiaQi = findViewById(R.id.JiaQi);
        LiuYan = findViewById(R.id.LiuYan);
        JiaoFei = findViewById(R.id.JiaoFei);
        ShangWang = findViewById(R.id.ShangWang);
        BaoXiu = findViewById(R.id.baoXiu);
        ClockInLate = findViewById(R.id.ClockInLate);
        re = findViewById(R.id.re);
        re.setOnClickListener(view -> finish());
        //晚归打卡
        ClockInLate.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminFunctionalModulesPage.this, AdminLateReturnPage.class);
            startActivity(intent);
        });
        //留言信息
        LiuYan.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminFunctionalModulesPage.this, AdminMessagePage.class);
            startActivity(intent);
        });
        //缴费信息
        JiaoFei.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminFunctionalModulesPage.this, AdminPayPage.class);
            startActivity(intent);
        });
        //上网信息
        ShangWang.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminFunctionalModulesPage.this, AdminSurfTheInternetPage.class);
            startActivity(intent);
        });
        //报修信息
        BaoXiu.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminFunctionalModulesPage.this, AdminRepairPage.class);
            startActivity(intent);
        });

        //假期去向信息
        JiaQi.setOnClickListener(view -> {
            Intent intent = new Intent();
            intent.setClass(AdminFunctionalModulesPage.this, AdminHolidayDestinationPage.class);
            startActivity(intent);
        });

    }



}
